package com.star.service;

import com.star.entity.User;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface UserService {

    //    核对用户名和密码
    User checkUser(String username, String password);

    Integer addUser(User user, MultipartFile file, HttpServletRequest request);

    Integer update(User user, MultipartFile file, HttpServletRequest request);

    Integer deleteById(Integer id);

    User getById(Integer id);

    List<User> getList();
}